import request from '@/utils/request'

// 查询采购收货单列表
export function listReceiveSheet(query) {
  return request({
    url: '/system/ReceiveSheet/list',
    method: 'get',
    params: query
  })
}

// 查询采购收货单详细
export function getReceiveSheet(id) {
  return request({
    url: '/system/ReceiveSheet/' + id,
    method: 'get'
  })
}

// 新增采购收货单
export function addReceiveSheet(data) {
  return request({
    url: '/system/ReceiveSheet',
    method: 'post',
    data: data
  })
}

// 修改采购收货单
export function updateReceiveSheet(data) {
  return request({
    url: '/system/ReceiveSheet',
    method: 'put',
    data: data
  })
}

// 删除采购收货单
export function delReceiveSheet(id) {
  return request({
    url: '/system/ReceiveSheet/' + id,
    method: 'delete'
  })
}
